

package com.jc.platform.liyonghui.mapper;

import org.apache.ibatis.annotations.Param;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jc.platform.liyonghui.entity.PartnerEntity;
import org.apache.ibatis.annotations.*;
import org.mapstruct.MappingTarget;

/**
 * ClassName PartnerMapper.java
 * Description 
 *
 * @author liyonghui
 * @version 3.0
 * @date 2021/08/07
 */
@Mapper
public interface IPartnerMapper extends BaseMapper<PartnerEntity>
{


    int getCountByPurchaseContract(Long partnerId);

    int addPurchaseContract(@Param("contractId")Long contractId,@Param("partnerId")Long partnerId);

    int removePurchaseContract(@Param("contractId")Long contractId,@Param("partnerId")Long[] partnerId);

    int removeAllPurchaseContract(Long contractId);




    List<PartnerEntity> findBySalesContract(Long contractId);

}




